home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13093 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: can't get system calls to work vis c ver 1
  5. Date: 4 Apr 1996 08:06 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <4APR199608061513@erich.triumf.ca>
  9. References: <828623397.22462@snowone.demon.co.uk>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <828623397.22462@snowone.demon.co.uk>, merv@snowone.demon.co.uk (snowone) writes...
  14.  
  15. >can anyone help me. I have msvc version one and i'm trying to get
  16. >this program working
  17. >#include <process.h>
  18. >void main()
  19. >{
  20. >   system("dir");
  21. >}
  22. >Will not compile. Says on linking _system is undeclared 
  23. >(note at first would not compile until #undef _WINDOWS)
  24. >have libraries oldnames, libw and mlibcewq
  25.  
  26. It is very likely that system() cannot be used under Windows, since you say it
  27. wouldn't compile until you die #undef _WINDOWS.
  28.  
  29. Look in the library reference to see _if_ system() is mentioned, and, if it is,
  30. if there is any restriction on its use under Windows.
  31.  
  32. There may be some Windows-specific call to do this....
  33.  
  34. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  35. Internet: bennett@triumf.ca         | of one another only when one can be
  36. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  37. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  38. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  39. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  40.  
  41.  
  42.  
  43.  
  44.  
  45.